import Router from '@koa/router';
import categoriesController from '@/controllers/categories.controller';
const categoriesRouter = new Router({ prefix: '/categories' });

categoriesRouter.post('/selectList', categoriesController.selectList);
categoriesRouter.post('/selectOne', categoriesController.selectOne);
categoriesRouter.post('/add', categoriesController.add);
categoriesRouter.post('/update', categoriesController.update);
categoriesRouter.post('/delete', categoriesController.delete);
categoriesRouter.post('/sort', categoriesController.sort);





export default categoriesRouter;